<?php /* Smarty version 2.6.18, created on 2010-05-11 20:29:38
         compiled from default/header.inc.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'default/header.inc.tpl', 3, false),array('block', 'cacheless', 'default/header.inc.tpl', 19, false),)), $this); ?>
<html>
	<head>
		<title><?php echo ((is_array($_tmp=$this->_tpl_vars['appName'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 200) : smarty_modifier_truncate($_tmp, 200)); ?>
</title>
		<meta name="Author" content="高洛峰" />
		<meta name="Keywords" content="<?php echo $this->_tpl_vars['keywords']; ?>
" />
		<meta name="description" content="<?php echo $this->_tpl_vars['description']; ?>
" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />		
		<link rel="stylesheet" type="text/css" href="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/css/global.css">
		<link rel="stylesheet" type="text/css" href="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/css/layout.css">
		<link rel="stylesheet" type="text/css" href="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/css/print.css">
		<script src="public/js/ajax2.0.js"></script>
		<script src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/javascript/common.js"></script>
	</head>
	<body>
		<div id="content">
			<div id="header">
				<div id="top">
					<div id="top_left">
						<?php $this->_tag_stack[] = array('cacheless', array()); $_block_repeat=true;smarty_block_cacheless($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
						<?php if ($_SESSION['isLoginH']): ?>
          						&nbsp;<b><?php echo $_SESSION['uname']; ?>
</b> 您好!&nbsp;&nbsp;[<a href="index.php?a=logout">退出</a>] 
						<?php else: ?>
						<form action="index.php?a=login" method="post">
							&nbsp;
							       <input type="hidden" name="url" value="<?php echo $this->_tpl_vars['url']; ?>
">
							用户名:<input class="inputheight" name="username" type="text" size="10">&nbsp;
							密码:<input class="inputheight" name="password" type="password" size="10">
							<input type="submit" class="button"  name="loginsubmit" value="登录">&nbsp;
							<a href="index.php?a=register"><span style="color:red">免费注册</span></a>
						</form>
						<?php endif; ?>
						<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_cacheless($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
					</div>

					<div id="top_right">
						<form action="index.php?a=search" method="post">
							<input type="radio" <?php if ($this->_tpl_vars['serType'] == 'title' || $this->_tpl_vars['serType'] == null): ?> checked <?php endif; ?> name="serType" value="title">标题
							<input type="radio" <?php if ($this->_tpl_vars['serType'] == 'content'): ?> checked <?php endif; ?> name="serType" value="content">内容
							<input type="radio" <?php if ($this->_tpl_vars['serType'] == 'keyword'): ?> checked <?php endif; ?> name="serType" value="keyword">关键字
							<input type="text"  name="search" size="15" value="<?php echo $this->_tpl_vars['search']; ?>
" maxlength="255">
							<input type="submit"  class="button"  value="搜索">&nbsp;
						</form>
					</div>
				</div>
				
				<div id="logo">
					<a href="<?php echo $this->_tpl_vars['appPath']; ?>
"><img border="0" width="200" height="80" alt="xscms_logo" src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/logo.png"></a>
				</div>
				<div id="right_box">
					<div id="banner">
						<!-- 可以在这里加入banner -->	
   						<a href="http://bbs.lampbrother.net"><img width="500" height="70" alt="banner" src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/banner.gif" border=0></a>
					</div>

					<div id="tool">
						
						<ul>
							<li><a href="">用户定义</a></li>
							<li><a href="">用户定义</a></li>
							<li><a href="">用户定义</a></li>
							<li><a href="">用户定义</a></li>
						</ul>
					</div>
				</div>
				<div class="nav"> </div>
			</div>	
			<div id="menu">
				<ul>
					<li><a href="index.php?a=column&pid=1">网站首页</a></li><li class="menudiv"> </li>
				
					<?php unset($this->_sections['li']);
$this->_sections['li']['name'] = 'li';
$this->_sections['li']['loop'] = is_array($_loop=$this->_tpl_vars['menu']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['li']['show'] = true;
$this->_sections['li']['max'] = $this->_sections['li']['loop'];
$this->_sections['li']['step'] = 1;
$this->_sections['li']['start'] = $this->_sections['li']['step'] > 0 ? 0 : $this->_sections['li']['loop']-1;
if ($this->_sections['li']['show']) {
    $this->_sections['li']['total'] = $this->_sections['li']['loop'];
    if ($this->_sections['li']['total'] == 0)
        $this->_sections['li']['show'] = false;
} else
    $this->_sections['li']['total'] = 0;
if ($this->_sections['li']['show']):

            for ($this->_sections['li']['index'] = $this->_sections['li']['start'], $this->_sections['li']['iteration'] = 1;
                 $this->_sections['li']['iteration'] <= $this->_sections['li']['total'];
                 $this->_sections['li']['index'] += $this->_sections['li']['step'], $this->_sections['li']['iteration']++):
$this->_sections['li']['rownum'] = $this->_sections['li']['iteration'];
$this->_sections['li']['index_prev'] = $this->_sections['li']['index'] - $this->_sections['li']['step'];
$this->_sections['li']['index_next'] = $this->_sections['li']['index'] + $this->_sections['li']['step'];
$this->_sections['li']['first']      = ($this->_sections['li']['iteration'] == 1);
$this->_sections['li']['last']       = ($this->_sections['li']['iteration'] == $this->_sections['li']['total']);
?>
						<li><a href="index.php?a=column&pid=<?php echo $this->_tpl_vars['menu'][$this->_sections['li']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['menu'][$this->_sections['li']['index']]['title']; ?>
</a></li><li class="menudiv"> </li>
					<?php endfor; endif; ?>
					<li><a href="http://bbs.lampbrother.net" target="_blank">论坛交流</a></li>
				</ul>			
			</div>
			<div class="nav"> </div>
			<div id="container">
			
